package com.foxmail.aroundme.boring.service;

import com.foxmail.aroundme.boring.bean.BaseResponse;

import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by gzl on 1/22/17.
 *
 * Retrofit网络请求接口
 */

public interface JokeService {
    @GET("joke/content/list.from")
    Observable<BaseResponse> getJokeWithParam(@Query("key") String key, @Query("page") int page,
                                              @Query("pagesize") int pagesize, @Query("sort") String sort,
                                              @Query("time") String time);


    @GET("joke/content/text.from")
    Observable<BaseResponse> getNewJokeWithParam(@Query("key") String key, @Query("page") int page,
                                              @Query("pagesize") int pagesize);

}
